<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/book/list" method="post">
<h1>图书信息列表</h1>
<table border="1">
    <tr>
        <td colspan="8" style="text-align: center">
            图书姓名: <input type="text" value="" name="bookname"> <input type="submit" value="查询">
        </td>
    </tr>
    <tr>
        <th>id</th>
        <th>图书姓名</th>
        <th>图书作者</th>
        <th>出版社</th>
        <th>出版日期</th>
        <th>图书总页数</th>
        <th>图书价格</th>
        <th>图书介绍</th>
    </tr>
    <tr th:each="a :${list}">
        <td th:text="${a.getId()}"></td>
        <td th:text="${a.getBookname()}"></td>
        <td th:text="${a.getAuthor()}"></td>
        <td th:text="${a.getPublish()}"></td>
        <td th:text="${a.getPublishdate()}"></td>
        <td th:text="${a.getPage()}"></td>
        <td th:text="${a.getPrice()}"></td>
        <td th:text="${a.getContent()}"></td>
    </tr>

</table>
</form>
</body>
</html>